package com.ww.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Email;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class User implements Serializable {

    private static final long serialVersionUID = 5449766221347566930L;
    private Integer user_id;       //用户id
    @NotNull
    private String user_name;      //用户名称

    private String user_password;  //用户密码
    @Email
    private String user_email;     //用户邮箱（用户账号）
    private String user_role;      //用户角色
}
